package com.niit.utils;

import lombok.Data;

@Data
public class CommonResult<T> {
//    返回结果状态码
    private int code;
//    返回信息
    private String msg;
//    返回结果数据
    private T data;

    public CommonResult (int code,String msg){
        this.code = code;
        this.msg = msg;
        this.data= null;
    }
    public CommonResult (int code,String msg,T data){
        this.code = code;
        this.msg = msg;
        this.data= data;

    }
}
